# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=blocky
pkgver=0.9.1
pkgrel=0
pkgdesc="DNS proxy as ad-blocker for local network"
url="https://github.com/0xERR0R/blocky"
arch="all !mips !mips64"
license="Apache-2.0"
options="net"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/0xERR0R/blocky/archive/v$pkgver.tar.gz"

build() {
	go get github.com/swaggo/swag/cmd/swag@v1.6.5
	make build
}

check() {
	make test
}

package() {
	install -Dm755 "bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
}

sha512sums="e9e2c47c4d226960626c4723a54c9ebd7974eda58ad189c94ded7c1da3c6057ade96885125d77099edcaea2979a2c01804f52201639a484bdb4c954cd7e3c684  blocky-0.9.1.tar.gz"
